<input lass="layui-input" style="width:200px;"  type="text" name="year" id="year" placeholder="搜索年例:2018" value="{$year|default=''}"/>
<
<if condition="$list neq null">
<div class="overflow:scroll; height:400px;">

	<div class="panel-group" id="accordion">
	<foreach name="list" item="v" key="k">

		<div class="panel panel-default">
			<div class="panel-heading">
				<h4 class="panel-title">
					<a data-toggle="collapse" data-parent="#accordion"
					   href="#collapse{$k}">
						{$v['moth']}月总收益:&nbsp&nbsp 合计:<strong style="color:green">{$v['shouyi']}</strong>元&nbsp&nbsp<if condition="$userInfo.lev neq 1">（不包含会费）</if>
					</a>
				</h4>
			</div>

			<div id="collapse{$k}" class="panel-collapse collapse">
				<div class="panel-body">

		<table class="table table-hover table-bordered table-list">
			<thead>
			<tr>
				<th>日期</th>
				<th>商品</th>
				<th>用户名</th>
				<th width="50">性别</th>
				<th width="65">手机号</th>
				<th>消费金额</th>
				<th>收益率</th>
				<th>收益</th>
				<th>本月底薪</th>
			</tr>
			</thead>
			<foreach name="v.sub" item="vo">
				<tr>
					<td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
					<td>{$vo.goods_name}</td>
					<td width="90">
						{$vo.name}
					</td>
					<td>
						<if condition="$vo.sex eq 1">
							男
							<else/>
							女
						</if>
					</td>
					<td>{$vo.phone}</td>
					<td>{$vo.money}元</td>
					<td>{$vo.bonus*100}%</td>
					<td>{$vo.money*$vo.bonus}元</td>
					<td>{$vo.base_money}元</td>
				</tr>
			</foreach>
		</table>

				</div>
			</div>
		</div>
	</foreach>
	</div>
	<ul class="pagination">{$page|default=''}</ul>
</div>
<else />
	<div style="margin-top: 10px;">
	    <span style="color: black;font-size: 28px;">本年度暂无收益记录</span>
    </div>
</if>
<script>
	$("#year").blur(function(){
	    var _this = $(this);
	    getTotalConsume(_this.val());
	});
</script>

